package de.wojenko.spe;
	
import java.awt.Toolkit;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class ScrumPlanningSecretary extends Application {
	private static final Logger log = LoggerFactory.getLogger(ScrumPlanningSecretary.class);
	@Override
	public void start(Stage primaryStage) {
		try {
//			FXMLLoader loader = new FXMLLoader();
//			URL url = getClass().getResource("SprintPane.fxml");
//			loader.setLocation(url);
//            loader.load(getClass().getResourceAsStream("SprintPane.fxml"));
//            MainPaneController ctrl = loader.getController();
			MainPaneController ctrl = new MainPaneController(primaryStage);

	        Scene scene = new Scene(ctrl, 800, 600);
	    
	        primaryStage.setTitle("Sprint Planning Secretary");
	        primaryStage.setScene(scene);
	        primaryStage.show();
	        
//			BorderPane root = new BorderPane();
//			Scene scene = new Scene(root,400,400);
//			scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
//			primaryStage.setScene(scene);
//			primaryStage.show();
		} catch(Throwable e) {
			log.error("Exception while initializing application",e);
			System.exit(1);
		}
	}
	
	public static void main(String[] args) {
//		System.setProperty("javafx.macosx.embedded", "true");
//		Toolkit.getDefaultToolkit();
		launch(args);
	}
}
